int to Object

Hello,

i have int value and i want a function to convert it to Object , is their any function like this ?

some thik like this :

int aaa 
Object source = Object aaa

 

when i use this code i get "incorrect arguments for (=)"

 

Regards,

 


Control17 - Fri Sep 08 08:28:20 EDT 2017

Re: int to Object
Mike.Scharnow - Fri Sep 08 08:54:11 EDT 2017

Object  (uppercase O) is a data type, a variable of type Object contains a handle to a DOORS Object.

object (lowercase o) is a function that takes as input an integer, looks for a DOORS Object with this absolute number in the current view and returns a handle to this Object.

 

so

int aaa = 1
Object source  = object aaa

 

Re: int to Object
Mike.Scharnow - Fri Sep 08 08:58:08 EDT 2017

Mike.Scharnow - Fri Sep 08 08:54:11 EDT 2017

Object  (uppercase O) is a data type, a variable of type Object contains a handle to a DOORS Object.

object (lowercase o) is a function that takes as input an integer, looks for a DOORS Object with this absolute number in the current view and returns a handle to this Object.

 

so

int aaa = 1
Object source  = object aaa

 

Note: "source" is a bad name for a variable, because "source" is a reserved word, it is a function that takes a link and returns an Object. look at the perm excel list to find out whether a word is reserved or not.

Re: int to Object
Control17 - Fri Sep 08 09:35:14 EDT 2017

Mike.Scharnow - Fri Sep 08 08:54:11 EDT 2017

Object  (uppercase O) is a data type, a variable of type Object contains a handle to a DOORS Object.

object (lowercase o) is a function that takes as input an integer, looks for a DOORS Object with this absolute number in the current view and returns a handle to this Object.

 

so

int aaa = 1
Object source  = object aaa

 

thank u .

Regards,

Neven